package com.youdoneed.news.news.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.youdoneed.news.news.entity.CmfAuthorFocus;

@Mapper
public interface CmfAuthorFocusMapper {
    int deleteByPrimaryKey(Integer id);

	int insert(CmfAuthorFocus record);

	int insertSelective(CmfAuthorFocus record);

	CmfAuthorFocus selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(CmfAuthorFocus record);

	int updateByPrimaryKey(CmfAuthorFocus record);

    
    /**
     * 根据用户id和作者id查询记录
     * @param authorId
     * @return
     */
    CmfAuthorFocus checkIsFocus(@Param("authorId") Integer authorId,@Param("faceUid") String faceUid);
    /**
     * 获取用户关注的记录
     * @param faceUid
     * @return
     */
    List<CmfAuthorFocus> getFocusNewsAuthor(String faceUid);
}